<template>
    <div class="chart-container">
        <chart id="FunnelEchart" :height="data.options.height+'px'" :data="data" :width="data.options.width+'px'" :options="data.options"/>
    </div>
</template>

<script>
import {getNewEcharts} from '@/api/api'
import echart from '@/mixins/echart'
export default {
    name: 'FunnelEchart',
    mixins: [echart],
    methods: {
        _getNewEcharts(){
            const parms = {
                echartType:"loudou",
                sourceId:this.data.options.sourceId
            }
            getNewEcharts(parms).then(res=>{
                if(res.rcode=='0000'){
                    this.data.options.series[0].data = res.data.data
                    this.data.options.legend.data = res.data.datax
                    
                }
            })
        }
    }
}
</script>
